package com.lucas.demo.mediator;

import lombok.Data;

/**
 * @author Lucas
 * @date 2021/7/29 下午4:36
 */
@Data
public class User {

    private String name;

    public User(String name){
        this.name  = name;
    }

    public void sendMessage(String message){
        ChatRoom.showMessage(this,message);
    }
}
